/* reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

input {
    border: none;
}

button:focus, input:focus {
    outline: none;
}

button {
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
}

/* common */

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

.por {
    position: relative;
}

.tac {
    text-align: center;
}

.emphasize, .important {
    margin: 0 2px;
    border: 1px solid #cfd8dc;
    border-radius: 3px;
    background-color: #eee;
    line-height: 1em;
}

.emphasize {
    color: #2196f3;
}

.important {
    color: #E91E63;
}

.invisible {
    display: none !important;
}

/* page */

html {
    --a-color: #6B4315;  /* aside background */
    --b-color: #EE6D4B;  /* hover background*/
    --c-color: #A16C10;  /* banner */
    --d-color: #CBB25D;  /* highlight */
    --e-color: #F0F55C;  /* hover */
    /* scrollbar-width: none;
    -ms-overflow-style: none; */
}
/* html::-webkit-scrollbar {
    display: none; 
} */

header.topNavBar {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: .8rem 1.4rem;
    background: var(--c-color);
    transition: all .5s;
}
header.topNavBar.sticky {
    background: #fff;
    padding: .6rem 1.2rem;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,.4);
}
header.topNavBar .logo {
    font-size: 1.5rem;
    text-align: left;
    color: var(--e-color);
}
header.topNavBar.sticky .logo {
    color: var(--d-color);
}
header.topNavBar .menu-btn span {
    background-color: var(--e-color);
}
header.topNavBar.sticky .menu-btn span {
    background-color: var(--d-color);
}

.wrapper {
    display: flex;
}
.main {
    flex: 1;
    max-width: 100vw;
}
.navBar {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    width: 260px;
    min-height: 440px;
    height: 100vh;
    transition: all .6s ease-in;
    background: var(--a-color);
    background: linear-gradient(to top, var(--a-color) 0%, var(--c-color) 100%);
}
.navBar>.footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 20px;
    text-align: center;
}
.navBar>.footer>.link svg.icon {
    width: 30px;
    height: 30px;
}
.navBar>.footer>.link svg.icon.github {
    fill: var(--b-color);
}
.navBar>.footer>.link svg.icon.csdn {
    fill: var(--d-color);
}
.navBar>.footer>.link svg.icon.hexo {
    fill: var(--e-color)
}
.navBar>.footer>.link a {
    display: inline-block;
    width: 40px;
    border-radius: 50%;
    margin: 6px;
    padding: 5px 0;
    transition: transform .3s;
}

.navBar>.footer>.link a:hover {
    transform: scale(1.2);
}
.navBar>.footer>p {
    color: var(--d-color);
    font-size: 14px;
}
.navBar .logo {
    display: block;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-size: 26px;
    color: #fff;
}

.navBar>.menu {
    padding: 10px 0;
    font-size: 20px;
}

.navBar>.menu .eng-small {
    font-size: .7em;
}

.navBar>.menu>ul>li {
    margin-bottom: 10px;
    background-image: linear-gradient( to right, var(--b-color) 50%, transparent 50%);
    background-position: 100%;
    background-size: 200%;
    transition: background .6s;
    cursor: pointer;
}

.navBar>.menu>ul>li>a {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 10px 10px 10px 28px;
    color: #fff;
}

.navBar>.menu>ul>li:hover {
    background-position: 0;
}

.navBar>.menu>ul>li.highLight>a {
    color: var(--d-color);
}

.navBar>.menu>ul>li:hover>a {
    color: var(--e-color);
}

.main .about {
    position: relative;
    padding-top: 1rem;
}

.main .about>.banner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 5rem;
    width: 100%;
    background-color: var(--c-color);
}

.main .about>.userCard {
    margin: .6rem auto;
    max-width: 600px;
    padding: .4rem .75rem;
    display: flex;
    word-wrap: break-word;
    background-color: #fff;
    box-shadow: 0px 5px 12px -3px rgba(0, 0, 0, 0.27);
}

.main .about>.userCard>.photo {
    margin-right: 1.25rem;
    width: 8.8rem;
    height: 8.8rem;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 50%;
    background-image: url(../img/photo1.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.main .about>.userCard>.info {
    position: relative;
}

.main .about>.userCard>.info>h1 {
    font-size: 2rem;
}

.main .about>.userCard>.info>h1>small {
    font-size: .6em;
}

.main .about>.userCard>.info>.desc {
    margin-top: .6rem;
    text-indent: 2em;
}

.main .about>.userCard>.info>.welcome {
    position: relative;
    display: inline-block;
    margin-bottom: .4rem;
    margin-left: 4rem;
    background-color: var(--c-color);
    padding: 6px 10px;
    color: white;
    border-radius: 6px;
}

.main .about>.userCard>.info>.welcome .triangle {
    position: absolute;
    top: 100%;
    left: 5px;
    border: 10px solid transparent;
    border-top: 0;
    border-left-color: var(--c-color);
    width: 0;
}

.main .about .downloadResume-wrapper {
    margin-top: 2.5rem;
    text-align: center;
}

.main .about a.downloadResume {
    display: inline-block;
    padding: 16px 26px;
    color: rgb(61, 68, 81);
    font-weight: bold;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.2em;
    border: 1px solid rgb(205, 207, 209);
    background-color: rgb(239, 239, 239);
    transition: box-shadow 0.2s;
}

.main .about a.downloadResume:hover {
    box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.2);
}

.main .about>.about-inner {
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1.6rem;
    line-height: 1.8em;
    font-size: 1.125rem;
}
.main .about>.about-inner>.right {
    line-height: 2.4em;
}
@media only screen and (max-width: 1350px) {
    .main .about>.about-inner>.right {
        margin-top: 24px;
    }
}
@media only screen and (min-width: 1350px) {
    .main .about>.about-inner>.left {
        margin-right: 8%;
        width: 46%;
    }
    .main .about>.about-inner>.right {
        width: 46%;
    }
}

.main .about>.about-inner .introduction {
    text-indent: 2em;
}
.main .about>.about-inner .icon {
    fill: var(--c-color);
    font-size: 24px;
}

.main h2.header {
    margin: 80px 0 40px;
    font-size: 40px;
    text-align: center;
}

.main .skills>.skillsList {
    margin: 1.2rem 1.2rem 1.2rem 2.4rem;
}

.main .skills>.skillsList>ol {
    float: left;
    line-height: 1.5em;
    list-style: circle;
}

@media only screen and (min-width: 1024px) {
    .main .skills>.skillsList>ol {
        width: 46%;
    }
    .main .skills>.skillsList>ol:first-child {
        margin-right: 8%;
    }
}

.main .skills>.skillsList>ol>li {
    margin: 10px 0;
}

.main .skills>.skillsList>ol>li>a {
    color: #2196f3;
}

.main .portfolio>ol>li, .main .workExperience>ol>li {
    margin: 20px auto;
    max-width: 600px;
    padding: 10px 20px 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 16px -4px rgba(0, 0, 0, 0.27);
}

.main .portfolio>ol>li .title, .main .workExperience>ol>li .title {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.main .portfolio>ol>li .title>span:last-child, .main .workExperience>ol>li .title>span:last-child {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 3px;
    font-size: .8em;
    color: #3090e4;
    background-color: rgba(48, 144, 228, .1);
    border-radius: 6px;
}

.main .portfolio>ol>li .content, .main .workExperience>ol>li .content {
    margin-bottom: 16px;
}

.main .portfolio>ol>li .content .desc {
    text-indent: 2em;
    line-height: 1.5em;
}

.main .portfolio>ol>li .footer, .main .workExperience>ol>li .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #ccc;
}

.main .portfolio>ol>li .footer .btn {
    display: inline-block;
    margin-left: 12px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #eee;
    color: #777;
    font-size: .9em;
    font-weight: bold;
    cursor: pointer;
}

.main .portfolio>ol>li .footer .btn:hover {
    background-color: #ddd;
}

.main .portfolio>ol>li.totoro-wrapper {
    display: flex;
}

.main .portfolio>ol>li.totoro-wrapper>.totoro {
    width: 400px;
    margin-right: 20px;
}

.main .portfolio>ol>li.totoro-wrapper .totoro-content {
    display: flex;
    flex-direction: column;
}

.main .portfolio>ol>li.totoro-wrapper .totoro-content>.content {
    flex-grow: 1;
    text-indent: 2em;
    line-height: 1.5em;
}

.main .workExperience>ol>li>main.content>p {
    padding-left: 1em;
    text-indent: -1em;
    line-height: 1.8em;
}

.main .contact {
    margin-bottom: 140px;
    min-height: calc(100vh - 160px);
}
@media only screen and (max-width: 768px) {
    .main .contact {
        min-height: calc(100vh - 210px);
    }
}


.main .contact>.contactWay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 2em;
    font-size: 20px;
}

.main .contact>.contactWay, .main .contact>.contactWay a.grey {
    color: #333;
}

.main .contact>.contactWay .icon {
    font-size: 32px;
    margin-right: 10px;
    vertical-align: -0.28em;
}


@media only screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }
    header.topNavBar {
        display: none;
    }
}
@media only screen and (max-width: 768px) {
    .wrapper>aside.navBar {
        display: none;
    }
    .wrapper>aside.navBar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        background: var(--c-color);
    }
    .wrapper>aside.navBar.active .logo {
        text-align: left;
    }
    .wrapper>aside.navBar.active>.footer {
        text-align: left;
    }
    
}
